package vip.liux.backend;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import vip.liux.backend.infrastructure.security.CurrentUser;

@EnableDiscoveryClient
@SpringBootApplication
public class WebfluxApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebfluxApplication.class, args);
    }


    @Bean
    public CurrentUser currentUser() {
        return new CurrentUser();
    }
}
